<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: California Congressional Districts in 2006</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for ca2006"><tr><td>ca2006</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>California Congressional Districts in 2006</h2>

<h3>Description</h3>

<p>Election returns and identifying information, California's 53
congressional districts in the 2006 Congressional elections.
</p>


<h3>Usage</h3>

<pre>data(ca2006)</pre>


<h3>Format</h3>

<p>A data frame with 53 observations on the following 11 variables.
</p>

<dl>
<dt><code>district</code></dt><dd><p>numeric, number of Congressional district</p>
</dd>
<dt><code>D</code></dt><dd><p>numeric, number of votes for the Democratic candidate</p>
</dd>
<dt><code>R</code></dt><dd><p>numeric, votes for the Republican candidate</p>
</dd>
<dt><code>Other</code></dt><dd><p>numeric, votes for other candidates</p>
</dd>
<dt><code>IncParty</code></dt><dd><p>character, party of the incumbent (or retiring member),
<code>D</code> or <code>R</code></p>
</dd>
<dt><code>IncName</code></dt><dd><p>character, last name of the incumbent, character
<code>NA</code> if no incumbent running</p>
</dd>
<dt><code>open</code></dt><dd><p>logical, <code>TRUE</code> if no incumbent running</p>
</dd>
<dt><code>contested</code></dt><dd><p>logical, <code>TRUE</code> if both major parties
ran candidates</p>
</dd>
<dt><code>Bush2004</code></dt><dd><p>numeric, votes for George W. Bush (R) in the district in
the 2004 presidential election</p>
</dd>
<dt><code>Kerry2004</code></dt><dd><p>numeric, votes for John Kerry (D) in 2004</p>
</dd>
<dt><code>Other2004</code></dt><dd><p>numeric votes for other candidates in 2004</p>
</dd>
<dt><code>Bush2000</code></dt><dd><p>numeric, votes for George W. Bush in 2000</p>
</dd>
<dt><code>Gore2000</code></dt><dd><p>numeric, votes for Al Gore (D) in 2000</p>
</dd>
</dl>



<h3>Source</h3>

<p>2006 data from the California Secretary of State's web site,
<a href="http://www.sos.ca.gov/elections/prior-elections/statewide-election-results/general-election-november-7-2006/statement-vote/">http://www.sos.ca.gov/elections/prior-elections/statewide-election-results/general-election-november-7-2006/statement-vote/</a>. 

2004 and 2000 presidential vote in congressional districts from the 2006 <em>Almanac of American Politics</em>.
</p>
<p>Thanks to Arthur Aguirre for the updated links, above.
</p>


<h3>References</h3>

<p>Michael Baraon and Richard E. Cohen.  2006. <em>The Almanac of American
Politics, 2006.</em> National Journal Group: Washington, D.C.
</p>


<h3>Examples</h3>

<pre>
data(ca2006)

## 2006 CA congressional vote against 2004 pvote
y &lt;- ca2006$D/(ca2006$D+ca2006$R)
x &lt;- ca2006$Kerry2004/(ca2006$Kerry2004+ca2006$Bush2004)

pch &lt;- rep(19,length(y))
pch[ca2006$open] &lt;- 1
col &lt;- rep("black",length(y))
col[11] &lt;- "red"    ## Pembo (R) loses to McNerney (D)
plot(y~x,pch=pch,
     col=col,
     xlim=range(x,y,na.rm=TRUE),
     ylim=range(x,y,na.rm=TRUE),
     xlab="Kerry Two-Party Vote, 2004",
     ylab="Democratic Two-Party Vote Share, 2006")
abline(0,1)
abline(h=.5,lty=2)
abline(v=.5,lty=2)
legend(x="topleft",
       bty="n",
       col=c("red","black","black"),
       pch=c(19,19,1),
       legend=c("Seat Changing Hands",
         "Seat Retained by Incumbent Party",
         "Open Seat (no incumbent running)")
       )
</pre>


</body></html>
